API Documentation
ObjDecodeOptions.h
1 // ObjDecodeOptions.h
3 //
5 
6 namespace nkGraphics
7 {
11  enum class OBJ_SPACE
12  {
13  UP_Y_FRONT_Z = 0,
15  } ;
16 }
17 
18 namespace nkGraphics
19 {
23  struct ObjDecodeOptions final
24  {
26 
27  bool _invertUvY = false ;
28  bool _invertWindingOrder = false ;
29  } ;
30 }
nkGraphics::OBJ_SPACE
OBJ_SPACE
Enumerates all spaces the obj data can come from.
Definition: ObjDecodeOptions.h:12
nkGraphics::OBJ_SPACE::UP_Y_FRONT_Z
@ UP_Y_FRONT_Z
Y is up, Z is front. This is the original space, which won't transform anything.
nkGraphics::ObjDecodeOptions::_objSpace
OBJ_SPACE _objSpace
The space the incoming data is coming from.
Definition: ObjDecodeOptions.h:25
nkGraphics::OBJ_SPACE::UP_Y_FRONT_MINUS_Z
@ UP_Y_FRONT_MINUS_Z
Y is up, -Z is front. This will negate the z coordinate coming from the data.
nkGraphics::ObjDecodeOptions
Describes all options available when decoding the obj format.
Definition: ObjDecodeOptions.h:24
nkGraphics::ObjDecodeOptions::_invertWindingOrder
bool _invertWindingOrder
Whether the winding order has to be inverted. If turned on, this swaps vertices 1 and 2 of a given tr...
Definition: ObjDecodeOptions.h:28
nkGraphics::ObjDecodeOptions::_invertUvY
bool _invertUvY
Whether the Y coordinate of the texture coordinates should be flipped (1 - Y) or not.
Definition: ObjDecodeOptions.h:27
nkGraphics
Encompasses all API of component NilkinsGraphics.
Definition: BoundingBox.h:7